﻿<%@ Page Title="Xtablish CRM / View Invoice" MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="ViewInvoice.aspx.cs" Inherits="Web.Invoice.ViewInvoice" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Con1" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function CancelClick() {
                window.location.assign(document.getElementById('<%= hdntxtPrevPage.ClientID %>').value);
            }
            function OnClientClose(oWnd, args) { }
            var sumInput = null;
            function Load(sender, args) {
                sumInput = sender;
            }
            function OnBlur(sender, args) {
                if (sender.get_value() == "") {
                    sender.set_value("0");
                }
            }
            function openRadwindow(url, formname) {
                var invID = document.getElementById('<%= hdntxtInvoiceID.ClientID %>').value;
                openWin(url + invID, formname);
                return false;
            }
            function TotalPriceOnValueChanged(sender, args) {
                var tempValue = 0.0;
                var grid = $find("<%= RadGrid1.ClientID %>");
                var masterTableView = grid.get_masterTableView();
                var rows = masterTableView.get_dataItems();
                for (var i = 0; i < rows.length; i++) {
                    var rntxtTotalPrice = rows[i].findControl("rntxtTotalPrice");
                    tempValue += rntxtTotalPrice.get_value();
                }
                sumInput.set_value(tempValue);
            }
            function disableKeyPress(evt) {
                return false;
            }
        </script>
    </telerik:RadCodeBlock>
    <style>
        .paddingright
        {
            padding-right: 0 !important;
        }
    </style>
    <asp:HiddenField ID="hdntxtPrevPage" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="hdntxtInvoiceID" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="hdntxtPrint" runat="server"></asp:HiddenField>

    <asp:HiddenField ID="hdntxtProductID" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="hdntxtProductName" runat="server"></asp:HiddenField>

    <asp:HiddenField ID="hdntxtCurrentRow" runat="server"></asp:HiddenField>

    <div class="register" id="divContent" runat="server" style="display: block">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-6">
                    <h3>View Invoice</h3>
                </div>
                <div class="col-md-6 btn-edit">
                    <asp:LinkButton ID="btnTop_Print" type="button" runat="server" class="btn btn-defaul" OnClientClick="return openRadwindow('InvoiceReport.aspx?InvoiceID=' ,'rwInvoiceReport');">
                        <img src="../Images/printer.png" style="width: 18px; height: 18px" />
                        Print
                    </asp:LinkButton>
                    <asp:LinkButton ID="btnTop_Cancel" type="button" runat="server" class="btn btn-defaul" OnClientClick="CancelClick()">
                        <img src="../Images/back.png" style="width: 18px; height: 18px" />
                        Back
                    </asp:LinkButton>
                </div>
            </div>

            <!-- end row -->
            <div class="row">
                <div class="edit-form highlight">
                    <div class="control-group">
                        <h4>Invoice Details</h4>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Company Name</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOrganizationName" runat="server" class="form-control form-fl" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Contact Name </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtContactName" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Customer No</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtCustomerNo" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Status </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtStatus" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Invoice Date</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtInvoiceDate" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Due Date</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtDueDate" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Purchase Order </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtPurchaseOrder" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Sales Commission </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtSalesCommission" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group" id="divAssignTo" runat="server">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Assigned To</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtAssignedTo" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
            <!-- end row -->
            <div class="row">
                <div class="edit-form highlight">
                    <div class="control-group">
                        <h4>Address Details</h4>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Office Address</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOfficeAddress" runat="server" TextMode="MultiLine" class="form-control" Rows="1" onkeydown="return disableKeyPress(event)"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Home Address</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtHomeAddress" runat="server" TextMode="MultiLine" class="form-control" Rows="1" onkeydown="return disableKeyPress(event)"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Office PO Box</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOfficePOBox" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Home PO Box</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtHomePOBox" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Office City</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOfficeCity" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Home City</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtHomeCity" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Office State</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOfficeState" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Home State</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtHomeState" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>

                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Office Postal Code </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOfficePostalCode" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Home Postal Code</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtHomePostalCode" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Office Country </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtOfficeCountry" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Home Country </label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtHomeCountry" runat="server" class="form-control" onkeydown="return disableKeyPress(event)" />
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>

            <!-- end row -->
            <div class="row">
                <div class="edit-form highlight">
                    <div class="control-group">
                        <h4>Terms & Conditions</h4>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Terms & Conditions</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtTermsAndConditions" runat="server" TextMode="MultiLine" class="form-control" Rows="1" Width="100%" onkeydown="return disableKeyPress(event)"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>

            <!-- end row -->
            <div class="row">
                <div class="edit-form highlight">
                    <div class="control-group">
                        <h4>Description Details</h4>
                    </div>
                    <div class="control-group">
                        <div class="col-md-6 distance-control">
                            <div class="col-md-4">
                                <label class="control-label">Descriptions</label>
                            </div>
                            <div class="col-md-8">
                                <div class="controls">
                                    <asp:TextBox ID="txtDescriptions" runat="server" TextMode="MultiLine" class="form-control" Rows="1" Width="100%" onkeydown="return disableKeyPress(event)"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
            <!-- end row-->
            <div class="row">
                <div class="edit-form highlight">
                    <div class="control-group">
                        <h4>Item Details</h4>
                    </div>
                    <div class="clearfix"></div>
                    <div style="width: 100%">
                        <telerik:RadGrid ID="RadGrid1" ShowStatusBar="True" runat="server" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True"
                            AutoGenerateColumns="False" GridLines="None" Width="100%" OnNeedDataSource="RadGrid1_NeedDataSource"
                            ShowFooter="True" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCreated="RadGrid1_ItemCreated" EnableViewState="false">
                            <MasterTableView PageSize="10" NoDetailRecordsText="No records" NoMasterRecordsText="No records" ShowHeader="true" TableLayout="Fixed" ClientDataKeyNames="ProductID"
                                DataKeyNames="ID,ProductID,ProductName,UnitPrice">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="ProductID" UniqueName="ProductID" Display="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="Item Image" UniqueName="ITEM_IMAGE">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="8.5%" />
                                        <ItemStyle HorizontalAlign="center" Width="8.5%" />
                                        <FooterStyle HorizontalAlign="center" Width="80px" BackColor="LightBlue" Font-Bold="true" />
                                        <ItemTemplate>
                                            <asp:Image ID="productImage" runat="server" ImageUrl='<%# Bind( "IMAGE") %>' Style="width: 80px; height: 80px" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Item Name" UniqueName="Column1" Aggregate="Count" FooterText="Total products: " DataField="ProductName">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="18%" />
                                        <ItemStyle Wrap="false" HorizontalAlign="center" Width="18%" CssClass="paddingright" />
                                        <FooterStyle HorizontalAlign="center" Width="18%" BackColor="LightBlue" Font-Bold="true" />
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" placeholder="Product Name" onkeydown="return disableKeyPress(event)"
                                                Text='<%# Bind( "ProductName") %>' CssClass="form-control" Width="100%" TextMode="MultiLine" Rows="2"></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Item Description" UniqueName="Column1">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="17.5%" />
                                        <ItemStyle Wrap="false" HorizontalAlign="center" Width="17.5%" />
                                        <FooterStyle HorizontalAlign="center" Width="17.5%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtProductDescription" runat="server" TextMode="MultiLine" placeholder="Product Description" onkeydown="return disableKeyPress(event)"
                                                Text='<%# Bind( "ProductDescription") %>' CssClass="form-control" Rows="2" Width="100%"></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="GST(%)" UniqueName="Column1">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="7%" />
                                        <ItemStyle HorizontalAlign="center" Width="7%" />
                                        <FooterStyle HorizontalAlign="center" Width="7%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <asp:Panel Style="width: 100%" ID="divGST" runat="server">
                                                <telerik:RadNumericTextBox ShowSpinButtons="false" Type="Percent" ID="rntxtGST" runat="server" DbValue='<%# Eval("GST") %>' MinValue="0" ReadOnly="true"
                                                    Width="100%" CssClass="RadNumbericText">
                                                    <ClientEvents OnBlur="OnBlur" />
                                                </telerik:RadNumericTextBox>
                                            </asp:Panel>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Unit Price" UniqueName="Column1" DataField="UnitPrice">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="10%" />
                                        <ItemStyle HorizontalAlign="center" Width="10%" />
                                        <FooterStyle HorizontalAlign="center" Width="10%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <telerik:RadNumericTextBox ShowSpinButtons="false" EmptyMessage="$" Type="Currency" ID="rntxtUnitPrice" runat="server" MinValue="0" ReadOnly="true"
                                                Width="100%" CssClass="RadNumbericText" DbValue='<%# Eval("UnitPrice") %>'>
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadNumericTextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Discount Price" UniqueName="DiscountPrice" DataField="DiscountPrice">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="12%" />
                                        <ItemStyle HorizontalAlign="center" Width="12%" />
                                        <FooterStyle HorizontalAlign="center" Width="12%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <div style="width: 100%">
                                                <telerik:RadButton ID="rbtnPercent" runat="server" ToggleType="Radio" ButtonType="ToggleButton" ReadOnly="true"
                                                    GroupName="Radios" AutoPostBack="false" CausesValidation="false" Text="Percent" Checked="true">
                                                </telerik:RadButton>
                                                <telerik:RadButton ID="rbtnPrice" runat="server" ToggleType="Radio" ButtonType="ToggleButton" ReadOnly="true"
                                                    GroupName="Radios" AutoPostBack="false" CausesValidation="false" Text="Price">
                                                </telerik:RadButton>
                                            </div>
                                            <asp:Panel Style="width: 100%" ID="divDiscountPercent" runat="server">
                                                <telerik:RadNumericTextBox ShowSpinButtons="false" Type="Percent" EmptyMessage="Enter Percent" ID="rntxtDiscountPercent" runat="server" ReadOnly="true"
                                                    Width="70%" CssClass="RadNumbericText" MinValue="0" IncrementSettings-Step="0.1">
                                                    <ClientEvents OnBlur="OnBlur" />
                                                </telerik:RadNumericTextBox>
                                            </asp:Panel>
                                            <asp:Panel Style="width: 100%; display: none" ID="divDiscountPrice" runat="server">
                                                <telerik:RadNumericTextBox ShowSpinButtons="false" Type="Currency" EmptyMessage="Enter Price" ID="rntxtDiscountPrice" runat="server" ReadOnly="true"
                                                    Width="70%" CssClass="RadNumbericText" MinValue="0">
                                                    <ClientEvents OnBlur="OnBlur" />
                                                </telerik:RadNumericTextBox>
                                            </asp:Panel>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="CurrentBalance" UniqueName="CurrentBalance" DataField="CurrentBalance" Display="false">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="8%" />
                                        <ItemStyle HorizontalAlign="center" Width="8%" />
                                        <FooterStyle HorizontalAlign="center" Width="3%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <telerik:RadNumericTextBox ShowSpinButtons="True" Type="Number" ID="rntxtCurrentBalance" runat="server" ReadOnly="true"
                                                Width="80%" CssClass="RadNumbericText" MinValue="0">
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadNumericTextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Quantity" UniqueName="Quantity" DataField="Quantity">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="7%" />
                                        <ItemStyle HorizontalAlign="center" Width="7%" />
                                        <FooterStyle HorizontalAlign="center" Width="7%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <telerik:RadNumericTextBox ShowSpinButtons="false" Type="Number" ID="rntxtQuantity" runat="server" ReadOnly="true"
                                                Width="100%" CssClass="RadNumbericText" MinValue="0">
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadNumericTextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Balance" UniqueName="BALANCE" DataField="BALANCE">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="7%" />
                                        <ItemStyle HorizontalAlign="center" Width="7%" />
                                        <FooterStyle HorizontalAlign="center" Width="7%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <telerik:RadNumericTextBox ShowSpinButtons="false" Type="Number" ID="rntxtBalance" runat="server" ReadOnly="true"
                                                Width="100%" CssClass="RadNumbericText" MinValue="0">
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadNumericTextBox>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label runat="server" Text="Total:" Font-Bold="true" />
                                        </FooterTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Total Price" UniqueName="TotalPrice" DataField="TotalPrice">
                                        <HeaderStyle Font-Bold="true" HorizontalAlign="center" Width="10%" />
                                        <ItemStyle HorizontalAlign="center" Width="10%" />
                                        <FooterStyle HorizontalAlign="center" Width="10%" BackColor="LightBlue" />
                                        <ItemTemplate>
                                            <telerik:RadNumericTextBox ShowSpinButtons="false" Type="Currency" ID="rntxtTotalPrice" runat="server" ReadOnly="true"
                                                Width="100%" CssClass="RadNumbericText">
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadNumericTextBox>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <telerik:RadNumericTextBox ID="rntxtTotalPriceFooter" runat="server" ShowSpinButtons="false" Type="Currency" Width="100%"
                                                ReadOnly="true" CssClass="RadNumbericText" LabelWidth="30%">
                                                <ClientEvents OnLoad="Load" />
                                            </telerik:RadNumericTextBox>
                                        </FooterTemplate>
                                    </telerik:GridTemplateColumn>

                                </Columns>
                                <PagerStyle PageSizes="5,10,20,50" PagerTextFormat="{4}<strong>{5}</strong> items in your page"
                                    PageSizeLabelText="Items per page:" AlwaysVisible="true" />
                            </MasterTableView>
                            <PagerStyle Mode="NumericPages"></PagerStyle>
                        </telerik:RadGrid>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="row">
                <div class="col-md-12 btn-edit">
                    <asp:LinkButton ID="btnBottom_Print" type="button" runat="server" class="btn btn-defaul" OnClientClick="return openRadwindow('InvoiceReport.aspx?InvoiceID=' ,'rwInvoiceReport');">
                        <img src="../Images/printer.png" style="width: 18px; height: 18px" />
                        Print
                    </asp:LinkButton>
                    <asp:LinkButton ID="btnBottom_Cancel" runat="server" type="button" class="btn btn-defaul" OnClientClick="CancelClick()">
                        <img src="../Images/back.png" style="width: 18px; height: 18px" />
                        Back
                    </asp:LinkButton>
                </div>
            </div>
        </div>
    </div>
    <div class="register" id="divError" runat="server" style="display: none">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    This invoice is not exist, click <a href="Invoices.aspx"><strong>here</strong></a> to go back Invoice list.
                </div>
            </div>
        </div>
    </div>
</asp:Content>
